package com.mrd.gtimpframe.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class TGenDeclaInsGroupRef implements Serializable {
  private String id;

  private String inspectId;

  private BigDecimal groupIndex1;

  private BigDecimal groupIndex2;

  private String combiMethod;

  private String creator;

  private Date createTime;

  private String status;

  private String policyRulesId;

  private static final long serialVersionUID = 1L;

  public TGenDeclaInsGroupRef(String id, String inspectId, BigDecimal groupIndex1,
      BigDecimal groupIndex2, String combiMethod, String creator, Date createTime, String status) {
    this.id = id;
    this.inspectId = inspectId;
    this.groupIndex1 = groupIndex1;
    this.groupIndex2 = groupIndex2;
    this.combiMethod = combiMethod;
    this.creator = creator;
    this.createTime = createTime;
    this.status = status;
  }

  public TGenDeclaInsGroupRef() {
    super();
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id == null ? null : id.trim();
  }

  public String getInspectId() {
    return inspectId;
  }

  public void setInspectId(String inspectId) {
    this.inspectId = inspectId == null ? null : inspectId.trim();
  }

  public BigDecimal getGroupIndex1() {
    return groupIndex1;
  }

  public void setGroupIndex1(BigDecimal groupIndex1) {
    this.groupIndex1 = groupIndex1;
  }

  public BigDecimal getGroupIndex2() {
    return groupIndex2;
  }

  public void setGroupIndex2(BigDecimal groupIndex2) {
    this.groupIndex2 = groupIndex2;
  }

  public String getCombiMethod() {
    return combiMethod;
  }

  public void setCombiMethod(String combiMethod) {
    this.combiMethod = combiMethod == null ? null : combiMethod.trim();
  }

  public String getCreator() {
    return creator;
  }

  public void setCreator(String creator) {
    this.creator = creator == null ? null : creator.trim();
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status == null ? null : status.trim();
  }

  public String getPolicyRulesId() {
    return policyRulesId;
  }

  public void setPolicyRulesId(String policyRulesId) {
    this.policyRulesId = policyRulesId;
  }

  public static long getSerialversionuid() {
    return serialVersionUID;
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append(getClass().getSimpleName());
    sb.append(" [");
    sb.append("Hash = ").append(hashCode());
    sb.append(", id=").append(id);
    sb.append(", inspectId=").append(inspectId);
    sb.append(", groupIndex1=").append(groupIndex1);
    sb.append(", groupIndex2=").append(groupIndex2);
    sb.append(", combiMethod=").append(combiMethod);
    sb.append(", creator=").append(creator);
    sb.append(", createTime=").append(createTime);
    sb.append(", status=").append(status);
    sb.append(", serialVersionUID=").append(serialVersionUID);
    sb.append("]");
    return sb.toString();
  }

  @Override
  public boolean equals(Object that) {
    if (this == that) {
      return true;
    }
    if (that == null) {
      return false;
    }
    if (getClass() != that.getClass()) {
      return false;
    }
    TGenDeclaInsGroupRef other = (TGenDeclaInsGroupRef) that;
    return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
        && (this.getInspectId() == null ? other.getInspectId() == null
            : this.getInspectId().equals(other.getInspectId()))
        && (this.getGroupIndex1() == null ? other.getGroupIndex1() == null
            : this.getGroupIndex1().equals(other.getGroupIndex1()))
        && (this.getGroupIndex2() == null ? other.getGroupIndex2() == null
            : this.getGroupIndex2().equals(other.getGroupIndex2()))
        && (this.getCombiMethod() == null ? other.getCombiMethod() == null
            : this.getCombiMethod().equals(other.getCombiMethod()))
        && (this.getCreator() == null ? other.getCreator() == null
            : this.getCreator().equals(other.getCreator()))
        && (this.getCreateTime() == null ? other.getCreateTime() == null
            : this.getCreateTime().equals(other.getCreateTime()))
        && (this.getStatus() == null ? other.getStatus() == null
            : this.getStatus().equals(other.getStatus()));
  }

  @Override
  public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
    result = prime * result + ((getInspectId() == null) ? 0 : getInspectId().hashCode());
    result = prime * result + ((getGroupIndex1() == null) ? 0 : getGroupIndex1().hashCode());
    result = prime * result + ((getGroupIndex2() == null) ? 0 : getGroupIndex2().hashCode());
    result = prime * result + ((getCombiMethod() == null) ? 0 : getCombiMethod().hashCode());
    result = prime * result + ((getCreator() == null) ? 0 : getCreator().hashCode());
    result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
    result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
    return result;
  }
}
